/**
 * @license
*
* PreProcessing is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* PreProcessing is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with PreProcessing.  If not, see <http://www.gnu.org/licenses/>.
* 
*/
package SmartGrid;

/**
 * @class monitors the current usage of the connected devices
 * 
 * @author Grant Hewton
 */
public class Usage {
    private double usage = 0.00;
    private static double PEAK_LIMIT = 300.00;
    
    /**
     *  @brief a method to add devices power usage to the usage total
     */
    public void addUsage(double usage)
    {
        this.usage += usage;        
    }
    
    /**
     *  @brief a method to return the current amount of power usage
     */
    public double getUsage()
    {
        return usage;
    }
    
    /**
     *  @brief a method to return the peak limit
     */
    public double getPeakLimit()
    {
        return PEAK_LIMIT;
    }
        
    
}
